/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Family Practice Provider Codes</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S20118 (C-0-T19465-S20096-S20118-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getFamilyPracticeProviderCodes()
 * @model extendedMetaData="name='FamilyPracticeProviderCodes'"
 * @generated
 */
public enum FamilyPracticeProviderCodes implements Enumerator {
	/**
	 * The '<em><b>207Q00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207Q00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_207Q00000X(0, "_207Q00000X", "207Q00000X"),

	/**
	 * The '<em><b>207QA0401X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207QA0401X_VALUE
	 * @generated
	 * @ordered
	 */
	_207QA0401X(1, "_207QA0401X", "207QA0401X"),

	/**
	 * The '<em><b>207QA0000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207QA0000X_VALUE
	 * @generated
	 * @ordered
	 */
	_207QA0000X(2, "_207QA0000X", "207QA0000X"),

	/**
	 * The '<em><b>207QA0505X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207QA0505X_VALUE
	 * @generated
	 * @ordered
	 */
	_207QA0505X(3, "_207QA0505X", "207QA0505X"),

	/**
	 * The '<em><b>207QG0300X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207QG0300X_VALUE
	 * @generated
	 * @ordered
	 */
	_207QG0300X(4, "_207QG0300X", "207QG0300X"),

	/**
	 * The '<em><b>207QS0010X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207QS0010X_VALUE
	 * @generated
	 * @ordered
	 */
	_207QS0010X(5, "_207QS0010X", "207QS0010X");

	/**
	 * The '<em><b>207Q00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207Q00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207Q00000X
	 * @model literal="207Q00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _207Q00000X_VALUE = 0;

	/**
	 * The '<em><b>207QA0401X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207QA0401X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207QA0401X
	 * @model literal="207QA0401X"
	 * @generated
	 * @ordered
	 */
	public static final int _207QA0401X_VALUE = 1;

	/**
	 * The '<em><b>207QA0000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207QA0000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207QA0000X
	 * @model literal="207QA0000X"
	 * @generated
	 * @ordered
	 */
	public static final int _207QA0000X_VALUE = 2;

	/**
	 * The '<em><b>207QA0505X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207QA0505X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207QA0505X
	 * @model literal="207QA0505X"
	 * @generated
	 * @ordered
	 */
	public static final int _207QA0505X_VALUE = 3;

	/**
	 * The '<em><b>207QG0300X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207QG0300X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207QG0300X
	 * @model literal="207QG0300X"
	 * @generated
	 * @ordered
	 */
	public static final int _207QG0300X_VALUE = 4;

	/**
	 * The '<em><b>207QS0010X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207QS0010X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207QS0010X
	 * @model literal="207QS0010X"
	 * @generated
	 * @ordered
	 */
	public static final int _207QS0010X_VALUE = 5;

	/**
	 * An array of all the '<em><b>Family Practice Provider Codes</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final FamilyPracticeProviderCodes[] VALUES_ARRAY =
		new FamilyPracticeProviderCodes[] {
			_207Q00000X,
			_207QA0401X,
			_207QA0000X,
			_207QA0505X,
			_207QG0300X,
			_207QS0010X,
		};

	/**
	 * A public read-only list of all the '<em><b>Family Practice Provider Codes</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<FamilyPracticeProviderCodes> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Family Practice Provider Codes</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static FamilyPracticeProviderCodes get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			FamilyPracticeProviderCodes result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Family Practice Provider Codes</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static FamilyPracticeProviderCodes getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			FamilyPracticeProviderCodes result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Family Practice Provider Codes</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static FamilyPracticeProviderCodes get(int value) {
		switch (value) {
			case _207Q00000X_VALUE: return _207Q00000X;
			case _207QA0401X_VALUE: return _207QA0401X;
			case _207QA0000X_VALUE: return _207QA0000X;
			case _207QA0505X_VALUE: return _207QA0505X;
			case _207QG0300X_VALUE: return _207QG0300X;
			case _207QS0010X_VALUE: return _207QS0010X;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private FamilyPracticeProviderCodes(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //FamilyPracticeProviderCodes
